#include <iostream>
#include<stdlib.h>

using namespace std;

void swap1(int x,int y);
void swap2(int &x,int &y);

int main()
{
    int a,b;
    cin>>a>>b;
    cout<<a<<"  "<<b<<endl;
    swap1(a,b);
    cout<<a<<"  "<<b<<endl;
    swap2(a,b);
    cout<<a<<"  "<<b<<endl;

    system("pause");
    return 0;
}

void swap1(int x,int y)
{
    int temp=x;
    x=y;
    y=temp;
}

void swap2(int &x,int &y)
{
    int temp=x;
    x=y;
    y=temp;
}
